/* util */
import qs from '@src/util/querystring'
/* vue */
import { computed, ComputedRef } from 'vue'

export function useUrlParams<Type>(): ComputedRef<Type> {
  // @ts-ignore
  return computed(() => qs.parse(window.location.search))
}

export function useBack(): Function {
  return () => { 
    window.history.back()
  }
}
